LIMB POSITION Z
This command will return the real number world Z position of the specified limb of the 3D object.
Return Float=LIMB POSITION Z(Object Number, Limb Number)
Object Number
Integer
The object number
Limb Number
Integer
The limb number
This command will return the real number world z position of the specified limb of the 3D object
Specifying a limb number of zero provides access to the objects own root data, and should not normally be used in this way. The parameters should be specified using integer values.
backdrop off : cls : sync on : sync rate 0 : hide mouse:cls 0
ObjectNumber=1
LimbNumber=1
load object "models\model.x",ObjectNumber
print "LIMBS"
print "exist:";limb exist(ObjectNumber, LimbNumber)
if limb exist(ObjectNumber, LimbNumber)=1
print "positionx:";limb position x(ObjectNumber, LimbNumber)
print "positiony:";limb position y(ObjectNumber, LimbNumber)
print "positionz:";limb position z(ObjectNumber, LimbNumber)
endif
while mouseclick()=0
sync
endwhile
if object exist(ObjectNumber)=1 then delete object ObjectNumber
end
BASIC3D Commands Menu
Index